<!DOCTYPE html>
<html lang="en">
{include file="public/head" /}
  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <!-- menu -->
        {include file="public/menu" /}
        <!-- menu -->
        <!-- top navigation -->
        {include file="public/top" /}
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
              <div class="title_left">
                <h3>轮播图管理</h3>
              </div>
            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <!--content-->
                <div class="x_panel">
                  <div class="x_title">
                    <h2>轮播图 <small>banner</small></h2>
                    <ul class="nav navbar-right panel_toolbox">
                        <li>
                            <button type="button" class="btn btn-warning btn-xs" onclick="window.location.href='{:url('admin/System/bannerAdd')}'">添加轮播图</button>
                        </li>
                    </ul>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content table-responsive">
                    <br>
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>id</th>
                            <th>轮播图标题</th>
                            <th>轮播图</th>
                            <th>链接url</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name="list" id="vo"}
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.title}</td>
                            <td><img src="{$vo.pic_url}" style="max-height: 100px;max-width: 150px;"></td>
                            <td><a href="{$vo.url}" target="_blank_blank"><button class="btn btn-info">链接地址</button></a></td>
                            <td>{$vo.status}</td>
                            <td>
                                <button type="button" class="btn btn-danger" onclick="window.location.href='{:url('admin/System/bannerDel')}?id={$vo.id}'">删除</button>
                            </td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>

                  </div>
                </div>
                <!--content-->
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->
        <!-- footer content -->
        {include file="public/footer" /}
        <!-- /footer content -->
      </div>
    </div>
    <!-- script -->
    <!-- jQuery -->
    <script src="__ADMIN__/vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="__ADMIN__/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="__ADMIN__/vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="__ADMIN__/vendors/nprogress/nprogress.js"></script>
    <!-- Custom Theme Scripts -->
    <script src="__ADMIN__/build/js/custom.min.js"></script>
    <!-- script -->
  </body>
</html>
